import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.ss.util.CellRangeAddress;


import java.awt.image.ImagingOpException;
import java.io.*;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * Created by us on 2016/10/21.
 */
public class Main {
    public  static void main(String []args) throws Exception {
        System.out.println("1.对表格进行操作\n"+"2.剪切图片\n"+"3.放大或者缩小图片");

        Scanner input = new Scanner(System.in);
        int n=input.nextInt();
        switch(n) {
            case 1:
            CreatCell newCell = new CreatCell();
            newCell.create();
                break;
            case 2:
                NewPicture pic = new NewPicture();
                pic.picture();
            case 3:
                Zoom_2 newZoom = new Zoom_2();
                newZoom.newPicture();
                break;

            default:
                break;

        }
    }

 /*   public static void main (String[] args) throws ImagingOpException, IOException {


        File file = new File("data/22.xls");
        String[][] result = getData(file, 0);
        int rowLength = result.length;


//read the .doc
     /*   InputStream in = new BufferedInputStream(new FileInputStream("data/123.docx"));
        XWPFDocument doc = new XWPFDocument(in);
        XWPFWordExtractor extractor = new XWPFWordExtractor(doc);
        int wordCount = doc.getProperties().getExtendedProperties().getUnderlyingProperties().getCharacters();

        System.out.println("共有"+wordCount+"个字");
        System.out.println(extractor.getText());
        in.close();*/
}